package gov.pr.celepar.sentinela.admin.excecao;

import gov.pr.celepar.framework.exception.ApplicationException;

import org.apache.commons.lang.builder.ToStringBuilder;

public class SentinelaServerException extends ApplicationException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6697924499538050368L;

	private String msg;

	/**
	 * @return Returns the msg.
	 */
	public String getMsg() {
		return this.msg;
	}

	/**
	 * @param msg
	 *            The msg to set.
	 */
	public void setMsg(String msg) {
		this.msg = msg;
	}

	/**
	 * @param arg0
	 */
	public SentinelaServerException(String arg0) {
		super(arg0);
		this.msg = arg0;
	}

	/**
	 * @param arg0
	 * @param arg1
	 */
	public SentinelaServerException(String arg0, Throwable arg1) {
		super(arg0, arg1);
		this.msg = arg0;
	}

	public SentinelaServerException(Throwable arg0) {
		super(arg0);
	}

	public String toString() {
		return new ToStringBuilder(this).append("msg", this.msg).toString();
	}
}